﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;

namespace Cheka.WinForm.Sample.Course
{
    static class Program
    {
        static void TestMain()
        {
            StudyPlan plan = new StudyPlan();
            plan.AddCourse(new Course
            {
                Semester = "2010 Fall",
                Department = "Computer Science",
                Id = 1,
                Name = "Python Programming",
                Time = "Mon 9.15",
                Location = "Sloan 233"
            });
            plan.AddCourse(new Course
            {
                Semester = "2009 Spring",
                Department = "Electric Engineering",
                Id = 2,
                Name = "Power System",
                Time = "Tue 16.10",
                Location = "EME B12"
            });
            StudyPlan.Save("test.xml", plan);
        }

        static void RealAppMain()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new MainForm());
        }

        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            // TestMain();
            RealAppMain();
        }
    }
}
